package com.recsmile.sgs.client.commonds;

import com.kael.sgs.core.Command;
import com.kael.sgs.core.Connection;
import com.recsmile.sgs.client.ClientFrame;
import com.recsmile.sgs.client.ui.components.LobbyGui;

public abstract class LobbyUIClientCommand implements Command<ClientFrame> {

	private static final long serialVersionUID = -1525699323874928634L;

	@Override
	public void execute(ClientFrame ui, Connection connection) {
		LobbyGui lobby = ui.<LobbyGui>getPanel().getContent();
		this.execute(lobby, connection);
	}
	
	public abstract void execute(LobbyGui lobby, Connection connection);

}
